package com.meida.module.bus.provider.mapper.srm;

import com.meida.module.bus.client.entity.srmapi.basedata.SrmContracts;
import com.meida.common.mybatis.base.mapper.SuperMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * srm合同主数据 Mapper 接口
 * @author flyme
 * @date 2020-10-15
 */
@Mapper
public interface SrmContractsMapper extends SuperMapper<SrmContracts> {
    @Delete("delete from ${tblNm} where projectId = #{projectId}")
    int del_tbl_data(@Param("tblNm") String tblNm, @Param("projectId") Long projectId);

    @Update("UPDATE bus_project set versionId = null , versionpackageId = null,archive200packge = null, version100 = null where projectId = #{projectId}")
    int update_project(@Param("projectId") Long projectId);
}
